<template>
  <div>
    <div>
      <span style="margin-right: 10px">
        <router-link to="/definition">新增</router-link>
      </span>
      <span>
        <router-link to="/report">列表</router-link>
      </span>
    </div>
    <router-view :key="key"/>
  </div>
</template>

<script>

export default {
  methods: {
    key() {
      return this.$route.path
    }
  }
}
</script>

<style scoped>
.sql-editor {
  width: 1000px;
  height: 400px;
}
</style>
